package com.pks.datacenter.common;

import java.text.SimpleDateFormat;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;


public class Configuration {

	public static SimpleDateFormat sdf_ymd = new SimpleDateFormat("yyyyMMdd");
	public static SimpleDateFormat sdf_ym = new SimpleDateFormat("yyyyMM");
	public static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static final String regex_mobile = "^(0|86|17951)?(13[0-9]|14[579]|15[012356789]|16[6]|17[0135678]|18[0-9]|19[89])[0-9]{8}$";
	public static final ExecutorService executorService = Executors.newFixedThreadPool(100);// 线程池
	
	public static Gson GSON = null;
	public static Gson GSON2 = null;
	static {
		GsonBuilder builder = new GsonBuilder();
		GSON = builder.setDateFormat("yyyy-MM-dd HH:mm:ss").create();
		GSON2 = builder.setDateFormat("yyyy-MM-dd").create();
	}
	
}
